package com.techsoul.module.order.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 购物车商品
 *
 * @author liuen
 * @date 2021-03-01
 */
@Data
@Accessors(chain = true)
public class CartItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("购物车类型")
    @NotBlank(message = "购物车类型不能为空")
    private String type;

    @ApiModelProperty("SPU ID")
    private String spuId;

    @ApiModelProperty("SKU ID")
    private String skuId;

    @ApiModelProperty("商品名称")
    private String spuName;

    @ApiModelProperty("型号")
    private String model;

    @ApiModelProperty("单价")
    private Double price;

    @ApiModelProperty("批发价")
    private Double wholesalePrice;

    @ApiModelProperty("内购价")
    private Double internalPrice;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("商品数量")
    private Integer qty;

    @ApiModelProperty("物流类型")
    private String deliveryType;

    @ApiModelProperty("备货状态")
    private String stockStatus;

    @ApiModelProperty("销售状态")
    private String salesStatus;

    @ApiModelProperty("商品图片")
    private String image;

    @ApiModelProperty("是否选中")
    private String isChecked;

    @ApiModelProperty("是否全选")
    private String isCheckedAll;

}
